![]() ![]() |
| The following review questions were covered in Labs 02
and 03 and are questions taken from the course website. NOT ALL questions
from the course website were discussed in lab. Please note that the information presented here does not necessarily represent a complete answer to the review question. The information is intended to spark student's memory for those who attended lab OR provide a base (hint) from where to start for those students who did not attend lab. | |||
A) Sketch the file structure, indicating the number of nodes at each level of the index. B) How many data records are in the file. C) If sequential processing were never needed for the file, it could be structured differently, improving performance both in terms of memory utilization and retrieval time. Suggest and explain how performance can be improved. |
|||
ANSWER A: |
|||
![]() |
|||
ANSWER B: 5,000,000 records (500,000 blocks x 10 records per block). NOTE: Total Capacity of this structure is 120,000,000 assuming a 2-level index. ANSWER C: Eliminate top level of the sequence set OR use an ordinary B tree. (there are more answers than this!) |
|||
Sometimes the keys are too large and we waste space (in this case it might be more efficient to use a simple prefix). |
|||
Locality of records (ie. - less costly swaps from memory to the hard drive). |
|||
Simplicity and Accessibility. |
|||
The purpose is essentially the same. In a B- Tree the key represents an actual record that exists, in a B+ Tree this is not necessarily the case. |
|||
![]() |
| © Copyright 2002 |
| Questions? Please Email: gwen@cpsc.ucalgary.ca |
| Last modified December 5, 2002 |